package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessMapper {
    /**
     * 根据orderTypeId查询商家信息
     * @return
     */
    @Select("SELECT * FROM business WHERE orderTypeId =#{orderTypeId}")
    public List<Business> getBusinessByOrderTypeId(Integer orderTypeId);


    /**
     * 根据businessId查询商家信息
     * @return
     */
    @Select("SELECT * FROM business WHERE businessId =#{businessId}")
    public Business getBusinessById(Integer businessId);
}
